package com.ruoyi.system.api.service.shop;


import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.SysFile;
import com.ruoyi.system.api.factory.RemoteFileFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(contextId = "remoteCfuserService", value = ServiceNameConstants.CFUSER_SERVICE, fallbackFactory = RemoteFileFallbackFactory.class)
public interface RemoteUserService {
    @PostMapping("upload")
    public R<SysFile> uploadFile(MultipartFile file) throws Exception;
}
